package edu.sctu.alex.projectPratice.test20150628;

import java.io.IOException;

/**
 * Created by alex on 2015/6/28.
 */
public class ProgramIn {

    public void beginProgram(){
    FileMethods fileMethods = new FileMethods();
    try {
        fileMethods.addDir();
        fileMethods.addFile();
    } catch (IOException e) {
        e.printStackTrace();
    }
    ThreadBegian threadBegian = new ThreadBegian();
    threadBegian.run();

    JsonGet jsonGet = new JsonGet();
    JsonPrase jsonPrase =new JsonPrase();
    GoodsMethods goodsMethods = new GoodsMethods();
        IOUtil ioUtil = new IOUtil();
        ioUtil.saveJsonInfo(jsonGet.getJsonInfo(WebPath.HOME+WebPath.GOODS_OF_X));
        ioUtil.savepraseJson(jsonPrase.parseJson(jsonGet.getJsonInfo(WebPath.HOME+WebPath.GOODS_OF_X)));

        goodsMethods.judgePrice(jsonPrase.parseJson(jsonGet.getJsonInfo(WebPath.HOME+WebPath.GOODS_OF_X)));


    }
}
